import request from '@/utils/request'

// 查询报修收费标准列表
export function listRepairFeeScale(query) {
  return request({
    url: '/workorder/repairFeeScale/list',
    method: 'get',
    params: query
  })
}

// 查询报修收费标准详细
export function getRepairFeeScale(id) {
  return request({
    url: '/workorder/repairFeeScale/' + id,
    method: 'get'
  })
}

// 新增报修收费标准
export function addRepairFeeScale(data) {
  return request({
    url: '/workorder/repairFeeScale',
    method: 'post',
    data: data
  })
}

// 修改报修收费标准
export function updateRepairFeeScale(data) {
  return request({
    url: '/workorder/repairFeeScale',
    method: 'put',
    data: data
  })
}

// 删除报修收费标准
export function delRepairFeeScale(id) {
  return request({
    url: '/workorder/repairFeeScale/' + id,
    method: 'delete'
  })
}

// 导出报修收费标准
export function exportRepairFeeScale(query) {
  return request({
    url: '/workorder/repairFeeScale/export',
    method: 'get',
    params: query
  })
}